package com.kyzh.core.adapters

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.gushenge.core.beans.Server
import com.kyzh.core.R

class GameDetailServerAdapter(layout:Int,beans:ArrayList<Server>) :BaseQuickAdapter<Server,BaseViewHolder>(layout,beans){
    override fun convert(helper: BaseViewHolder, item: Server) {
            helper.setText(R.id.time,"${item.time1}  ${item.time2}")
                    .setText(R.id.server, item.server_name.trim())
                    .setText(R.id.state,item.type)
           // helper.getView<TextView>(R.id.state).setTextColor(if (item.type=="未开服") Color.rgb(89,206,159) else Color.rgb(130,130,130))
    }
}